<table style="width: 100%;height: 100%">
    {% if NavUl is defined %}
        <tr style="height: 67px">
            <td valign="top" colspan="2">{{ NavUl }}</td>
        </tr>
    {% endif %}
    <tr style="height:100%;" >
        <td class="xh-datagrid" style="width: 178px">{{ ClassList }}</td>
        <td class="xh-datagrid">{{ List }}</td>
    </tr>
</table>
<div id="menu_tablet">
    {% if power['spare'] %}
        <div onclick="obj.funObj().openSpareList()"><a>使用备用机</a></div>
        <div onclick="obj.funObj().doneSpareUsed()"><a>归还备用机</a></div>
        <div class="menu-sep"></div>
        <div onclick="obj.funObj().openBorrowPage()"><a>借用学生机</a></div>
        <div onclick="obj.funObj().unbindDevice(2)"><a>归还学生机</a></div>
    {% endif %}
    <div class="menu-sep"></div>
    {% if power['auth'] %}
        <div onclick="obj.funObj().authStudTablet()"><a>认证</a></div>
    {% endif %}
    <div class="menu-sep"></div>
    {% if power['bind'] %}
        <div onclick="obj.funObj().addBindTablet()"><a>添加绑定</a></div>
    {% endif %}
    {% if power['handBind'] %}
        <div onclick="obj.funObj().handBindTablet()"><a>手动绑定</a></div>
    {% endif %}
</div>
<div id="menu_apply">
    {% if power['repair'] %}
        <div onclick="obj.funObj().repairApply(1)"><a>申请维修</a></div>
        <div onclick="obj.funObj().repairApply(2)"><a>取消维修</a></div>
        <div onclick="obj.funObj().changeSchoolApply()"><a>申请转校</a></div>
    {% endif %}
    {#贫困生申请#}
    {#教师子女申请#}
</div>
<div id="menu_setting">
    {% if power['edit'] %}
        <div onclick="obj.funObj().setClassName();"><a>修改班级</a></div>
        <div onclick="obj.funObj().setUserName();"><a>修改姓名</a></div>
        <div onclick="obj.funObj().setUserSex();"><a>修改性别</a></div>
        <div>
            <span>用户状态</span>
            <div>
                <div onclick="obj.funObj().setHistory(false)"><a>设为正常</a></div>
                <div onclick="obj.funObj().setHistory(true)"><a>设为历史</a></div>
            </div>
        </div>
        <div>
            <span>电子书包</span>
            <div>
                <div onclick="obj.funObj().setEbook(true)"><a>使用</a></div>
                <div onclick="obj.funObj().setEbook(false)"><a>取消</a></div>
            </div>
        </div>
        <div>
            <span>用户属性</span>
            <div>
                <div onclick="obj.funObj().setPoorLevel(0)"><a>非贫困生</a></div>
                <div onclick="obj.funObj().setPoorLevel(1)"><a>一级贫困生</a></div>
                <div onclick="obj.funObj().setPoorLevel(2)"><a>二级贫困生</a></div>
                <div onclick="obj.funObj().setTchChild(1)"><a>非教师子女</a></div>
                <div onclick="obj.funObj().setTchChild(2)"><a>教师子女</a></div>
                <div onclick="obj.funObj().setBehind(0)"><a>非留守儿童</a></div>
                <div onclick="obj.funObj().setBehind(1)"><a>留守儿童</a></div>
            </div>
        </div>
        <div>
            <span>购置方式</span>
            <div>
                <div onclick="obj.funObj().setDevSource(1)"><a>购买</a></div>
                <div onclick="obj.funObj().setDevSource(2)"><a>租用</a></div>
                <div onclick="obj.funObj().setDevSource(3)"><a>借用</a></div>
                <div onclick="obj.funObj().setDevSource(4)"><a>自购</a></div>
            </div>
        </div>
        {% if power['userSign'] %}
            <div>
                <span>签收</span>
                <div>
                    <div onclick="obj.funObj().setSignInData(1, 1)"><a>开启</a></div>
                    <div onclick="obj.funObj().setSignInData(1, 0)"><a>关闭</a></div>
                </div>
            </div>
            <div>
                <span>协议</span>
                <div>
                    <div onclick="obj.funObj().setSignInData(2, 1)"><a>开启</a></div>
                    <div onclick="obj.funObj().setSignInData(2, 0)"><a>关闭</a></div>
                </div>
            </div>
            <div>
                <span>配件</span>
                <div>
                    <div onclick="obj.funObj().setSignInData(3, 1)"><a>开启</a></div>
                    <div onclick="obj.funObj().setSignInData(3, 0)"><a>关闭</a></div>
                </div>
            </div>
        {% endif %}
        {#{% if power['configureList'] %}#}
            {#<div onclick="obj.funObj().userConfigure();"><a>用户功能配置</a></div>#}
        {#{% endif %}#}
    {% endif %}
</div>
<div id="menu_import">
    {% if power['studNo'] %}
        <div onclick="obj.funObj().importStudentNo()"><a>导入序号</a></div>
    {% endif %}
    {% if power['identity'] %}
        <div onclick="obj.funObj().importIdentity()"><a>导入身份证</a></div>
    {% endif %}
    {% if power['add'] %}
        <div onclick="obj.funObj().importStudent()"><a>导入学生</a></div>
    {% endif %}
</div>
<div id="menu_more">
    {% if power['unbind'] %}
        <div onclick="obj.funObj().unbindDevice(1)"><a>解除绑定</a></div>
    {% endif %}
    {% if power['group'] %}
        <div onclick="obj.funObj().viewAppGroup()"><a>查看应用组</a></div>
    {% endif %}
    {% if power['assist'] %}
        <div onclick="obj.funObj().startAssist()"><a>协助</a></div>
    {% endif %}
    {% if power['random'] %}
        <div onclick="obj.funObj().setRandomPwd()"><a>设置随机密码</a></div>
        <div onclick="obj.funObj().cleanRandomPwd()"><a>清除随机密码</a></div>
    {% endif %}
</div>
<div id="menu_use_type">
    {% if power['useType'] %}
        <div onclick="obj.funObj().useType(1)"><a>正式</a></div>
        <div onclick="obj.funObj().useType(2)"><a>测试</a></div>
        <div onclick="obj.funObj().useType(3)"><a>体验</a></div>
        <div onclick="obj.funObj().useType(4)"><a>临时</a></div>
        <div onclick="obj.funObj().useType(5)"><a>培训</a></div>
    {% endif %}
</div>
